package com.jintian.smart.kernel.orm.dto;

import java.util.Map;

import lombok.Data;

/**
 * 用于封装前端组合查询参数
 */
@Data
public class Condition {
	private String id;

	private String nestedPath;
	/**
	 * 条件字段
	 */
	private String field;

	/**
	 * 字段类型
	 */
	private String type;

	/**
	 * 操作符
	 */
	private String operator;

	/**
	 * 条件匹配值
	 */
	private Object[] value;

	private Map<String, Object> options;

	public Condition() {

	}

	public Condition(String field, String operator, Object[] value) {
		this.field = field;
		this.operator = operator;
		this.value = value;
	}

	public Condition(String nestedPath, String field, String operator, Object[] value) {
		this.nestedPath = nestedPath;
		this.field = field;
		this.operator = operator;
		this.value = value;
	}

}
